<?php

if ($detail_promotion->num_rows() > 0) {
    $promo = $detail_promotion->row();
}

?>

<div id="wrapper-content">
        <table class="titrepage" width="100%">
        <tr>
            <td >Information promotion</td>
            <td align="right"> </td>
        </tr>
    </table>

        <?php echo form_open_multipart(site_url('promotion/update_promotion') . '/' . $promo->id); ?>
        <table align="center" width="100%" class="list" cellpadding="10px" cellspacing="0">
            <tr>
                <td>Type Paiement:</td>
                <td>
                    <select name="type">
                        <option value="1" <?php if($promo->type == 1) echo "selected"; ?> >Pourcentage</option>
                         <option value="2" <?php if($promo->type == 2) echo "selected"; ?>>Euro</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td>Code:</td>
                <td><input name="code" type="text" value="<?php echo $promo->code; ?>" /></td>
                <td><?php echo form_error('code'); ?></td>
            </tr>
            <tr>
                <td>Pour cent:</td>
                <td><input name="pct" type="text" value="<?php echo $promo->pct; ?>" /></td>
                <td><?php echo form_error('pct'); ?></td>
            </tr>
              <tr>
                <td></td><td><input type="submit" name="submit" value="Update"/></td>
            </tr>
        </table>

    <?php echo form_close() ?>

</div>

